<template>
	<view class="notice">
		<u-notice-bar color="#FF9900" bg-color="#FFFBE8" mode="horizontal" :list="list"></u-notice-bar>
	</view>
</template>

<script>
	import request from '@/util/request.js'
	export default {
		name: "Notice",
		data() {
			return {
				list: []
			}
		},
		methods: {
			requestNotice() {
				request.globalRequest({
					url: "/api/public/setting_get",
				}).then(({
					mall_notice
				}) => {
					this.list = mall_notice.split('，')
				})
			}
		},
		created() {
			this.requestNotice()
		}
	}
</script>
